<%= action_authorized_button_to "vote",
                                budget_order_line_item_path(model.budget, project_id: model, show_only_added: options[:show_only_added]),
                                method: vote_button_method,
                                remote: true,
                                resource: model.budget,
                                class: "button #{vote_button_classes}",
                                id: "project-vote-button-#{model.id}",
                                data: {
                                  add: !resource_added?(model),
                                  disable: true,
                                  budget: model.budget_amount,
                                  allocation: resource_allocation,
                                  "redirect-url": authorization_redirect_path,
                                  onboarding_redirect_path: authorization_redirect_path
                                },
                                disabled: vote_button_disabled?,
                                title: vote_button_label do %>
  <% if resource_added?(model) %>
     <%= t("added", scope: "decidim.budgets.projects.project_budget_button") %>
     <%= icon "checkbox-circle-line", class: "inline-block" %>
  <% else %>
     <%= t("add", scope: "decidim.budgets.projects.project_budget_button") %>
     <%= icon "add-fill", class: "inline-block" %>
  <% end %>
<% end %>
